<template>
  <a-tabs defaultActiveKey="1">
    <a-tab-pane tab="班级" key="1">
      <task-exe-function-modal ref="TaskExeFunctionModal"></task-exe-function-modal>
    </a-tab-pane>
    <a-tab-pane tab="学生" key="2" forceRender>
    </a-tab-pane>
    <a-tab-pane tab="任课老师" key="4" forceRender>
    </a-tab-pane>
    <a-tab-pane tab="课表" key="4" forceRender>
    </a-tab-pane>
    <a-tab-pane tab="考试" key="4" forceRender>
    </a-tab-pane>
    <a-tab-pane tab="试卷" key="4" forceRender>
    </a-tab-pane>
    <a-tab-pane tab="学年" key="4" forceRender>
    </a-tab-pane>
    <a-tab-pane tab="学期" key="4" forceRender>
    </a-tab-pane>
    <a-tab-pane tab="年级" key="4" forceRender>
    </a-tab-pane>
    <a-tab-pane tab="部门" key="3" forceRender>
    </a-tab-pane>
  </a-tabs>
</template>

<script>

  import '@/assets/less/TableExpand.less'
  import { mixinDevice } from '@/utils/mixin'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import TaskExeFunctionModal from './modules/TaskExeFunctionModal'

  export default {
    name: 'TaskExeFunctionTabs',
    mixins:[JeecgListMixin, mixinDevice],
    components: {
      TaskExeFunctionModal
    },
    data () {
      return {
        description: 'task_exe_function管理页面',
        // 表头
        columns: [
          {
            title: '#',
            dataIndex: '',
            key:'rowIndex',
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
          },
          {
            title:'方法名称',
            align:"center",
            dataIndex: 'exeFunctionName'
          },
          {
            title:'方法中文名称',
            align:"center",
            dataIndex: 'exeFunctionNameCn'
          },
          {
            title:'方法目标对象类型',
            align:"center",
            dataIndex: 'exeTargetObjType'
          },
          {
            title:'参数格式样式',
            align:"center",
            dataIndex: 'exeFunctionParamFormart'
          },
          {
            title:'前置方法id，起始是start',
            align:"center",
            dataIndex: 'exeFunctionPrepositionId'
          },
          {
            title:'方法描述',
            align:"center",
            dataIndex: 'exeFunctionDescription'
          },
          {
            title:'是否启用：1是(启用) 0否(停用)',
            align:"center",
            dataIndex: 'izOpen'
          },
          {
            title:'租户ID',
            align:"center",
            dataIndex: 'tenantId'
          },
          {
            title:'删除状态：1是(已删除) 0否(正常)',
            align:"center",
            dataIndex: 'delFlag'
          },
          {
            title: '操作',
            dataIndex: 'action',
            align:"center",
            fixed:"right",
            width:147,
            scopedSlots: { customRender: 'action' }
          }
        ],
        url: {
          list: "/upgrade/taskExeFunction/list",
          delete: "/upgrade/taskExeFunction/delete",
          deleteBatch: "/upgrade/taskExeFunction/deleteBatch",
          exportXlsUrl: "/upgrade/taskExeFunction/exportXls",
          importExcelUrl: "upgrade/taskExeFunction/importExcel",
          
        },
        dictOptions:{},
        superFieldList:[],
      }
    },
    created() {
    this.getSuperFieldList();
    },
    computed: {
      importExcelUrl: function(){
        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
      },
    },
    methods: {
      initDictConfig(){
      },
      getSuperFieldList(){
        let fieldList=[];
        fieldList.push({type:'string',value:'exeFunctionName',text:'方法名称'})
        fieldList.push({type:'string',value:'exeFunctionNameCn',text:'方法中文名称'})
        fieldList.push({type:'string',value:'exeTargetObjType',text:'方法目标对象类型'})
        fieldList.push({type:'string',value:'exeFunctionParamFormart',text:'参数格式样式'})
        fieldList.push({type:'string',value:'exeFunctionPrepositionId',text:'前置方法id，起始是start'})
        fieldList.push({type:'string',value:'exeFunctionDescription',text:'方法描述'})
        fieldList.push({type:'int',value:'izOpen',text:'是否启用：1是(启用) 0否(停用)'})
        fieldList.push({type:'string',value:'tenantId',text:'租户ID'})
        fieldList.push({type:'int',value:'delFlag',text:'删除状态：1是(已删除) 0否(正常)'})
        this.superFieldList = fieldList
      }
    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less';
</style>